package com.joven.core.constant;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author joven_wong
 * 2021/6/3 10:12
 */
@Data
@Component
@ConfigurationProperties(prefix = "joven")
public class PropertiesCont {
//    @Value("${joven.name}")
    private String name;

//    @Value("${joven.serverAddr}")
    private String serverAddr;
}
